--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit 6c19fc85b9ec5702a12ea895e292600aa322ae99
Parents : c5ad94b
Author : Mark Qvist <mark@unsigned.io>
Date : 2022-10-08T20:03:01+02:00
Don't try sending empty messages
Changes
Diff
diff --git a/sbapp/main.py b/sbapp/main.py
index a753bc59..cd63d121 100644
--- a/sbapp/main.py
+++ b/sbapp/main.py
@@ -506,6 +506,9 @@ class SidebandApp(MDApp):
self.open_conversations(direction="right")
def message_send_action(self, sender=None):
+ if self.root.ids.message_text.text == "":
+ return
+
def cb(dt):
self.message_send_dispatch(sender)
Clock.schedule_once(cb, 0.20)
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────